package exam.jingdong.S3;


import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        System.out.println(solution(n));
    }

    public static long solution(int n) {
        if (n < 6)
            return 0;
        else if (n == 6)
            return 1;
        else
            return 2;
    }
}
